<div class="perfiles index">
	<h2><?php __('Perfiles');?></h2>
	<table>
		<tr>
			<td><?php echo $this->Html->link($this->Html->image('perfil_nuevo.png', array('alt'=> __('Nuevo Perfil', true), 'border' => '0')),
										'../perfiles/add/',array('escape' => false, 'title'=>'Perfiles')); ?></td>
		</tr>
	</table>
	<table cellpadding="0" cellspacing="0">	
	<tr>			
			<th><?php echo $this->Paginator->sort('cargo');?></th>
			<th><?php echo $this->Paginator->sort('area');?></th>
			<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($perfiles as $perfile):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>		
		<td><?php echo $perfile['Perfile']['cargo']; ?>&nbsp;</td>
		<td><?php echo $perfile['Perfile']['area']; ?>&nbsp;</td>		
		<td>
			<?php echo $this->Html->link($this->Html->image('responsabilidades.png', array('alt'=> __('Responsabilidades', true), 'border' => '0')),
										'../responsabilidades/index/'.$perfile['Perfile']['id'],array('escape' => false, 'title'=>'Responsabilidades')); ?>
			<?php echo $this->Html->link($this->Html->image('contact.png', array('alt'=> __('Contactos', true), 'border' => '0')),
										'../contactos/index/'.$perfile['Perfile']['id'],array('escape' => false, 'title'=>'Contactos')); ?>
			<?php echo $this->Html->link($this->Html->image('prueba_requerida.png', array('alt'=> __('Prueba Preliminar', true), 'border' => '0')),
										'../pruebarequeridas/index/'.$perfile['Perfile']['id'],array('escape' => false, 'title'=>'Prueba Requerida')); ?>
			<?php echo $this->Html->link($this->Html->image('edit.png', array('alt'=> __('Editar', true), 'border' => '0')),
										'edit/'.$perfile['Perfile']['id'],array('escape' => false, 'title'=>'Editar Perfil')); ?>
			<?php echo $this->Html->link($this->Html->image('view.png', array('alt'=> __('Ver', true), 'border' => '0')),
										'view/'.$perfile['Perfile']['id'],array('escape' => false, 'title'=>'Ver Perfil')); ?>
			<?php echo $this->Html->link($this->Html->image('delete.png', array('alt'=> __('Eliminar', true), 'border' => '0')),
										'delete/'.$perfile['Perfile']['id'],array('escape' => false, 'title'=>'Eliminar Perfil'), sprintf(__('Esta seguro de eliminar: %s?', true), $perfile['Perfile']['cargo'])); ?>			
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format'=>__('P&aacute;gina %page% de %pages%, mostrando %current% de %count% total, empezando en %start%, terminando en %end%', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< '.__('Anterior',true), array(),null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('Siguiente', true) . ' >>', array(), null, array('class'=>'disabled'));?>
	</div>
</div>
<div class="actions">
	<?php echo $this->Form->menu($this->Access->getMy('id'),$this->Access->getMy('group_id'));?>
</div>